
package org.scalabletype.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.OneToMany;

@Entity
public class User extends Entry implements Serializable {
	protected String username;
	protected String firstName;
	protected String lastName;
	protected String password;
//	protected List<String> auth_groups;
	protected String auth_groups;

	public User() {
//		auth_groups = new ArrayList<String>();
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

/*
	public List<String> getAuthGroups() {
		return auth_groups;
	}

	public void setAuthGroups(List<String> auth_groups) {
		this.auth_groups = auth_groups;
	}
*/

	public String getAuthGroups() {
		return auth_groups;
	}

	public void setAuthGroups(String auth_groups) {
		this.auth_groups = auth_groups;
	}
}
